from matplotlib import pyplot as plt 

#定义图像和三维格式坐标轴
#fig = plt.figure()
#plt.plot(X,Y)

fig, axes = plt.subplots()

Y = [0.000641161,0.000167155,4.45438e-05,1.09228e-05]

Z = [0.00743431, 0.00365878, 0.00190251, 0.0009421]

K = [0.00197148,0.000521871,0.000166262,5.14086e-05]

 
x = [8, 16, 32, 64]
Y = [0.22159,0.229842,0.231968,0.232505]
Z = [0.272238,0.274899,0.275551,0.275713]
K = [0.491285,0.500906,0.503725,0.504214]

#Y = [0.00346234,0.000897821,0.000226532, 5.67639e-05]
#Z = [ 0.0340298, 0.0171812, 0.00861096, 0.00430801]
#K = [0.00767633,0.00195667, 0.000491919, 0.000123099]

axes.set_xlabel('N value')  # 横轴名称
#axes.set_ylabel('y label')
axes.set_title('Omega')  # 图形名称
 
axes.plot(x, Y)
axes.plot(x, Z)
axes.plot(x, K)
axes.legend(["1_norm", "2_norm","infty_norm"], loc=0)  

plt.draw()
plt.savefig('u11.png')
plt.show()
